import React from "react";
import ReactDOM from "react-dom/client";
import App from "@/App";
import { ConfigProvider } from "antd";
import "./index.less";
import { Provider } from "react-redux";
import store from "./store";
import zhCN from "antd/es/locale/zh_CN";

import { HashRouter } from "react-router-dom";
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <ConfigProvider
    locale={zhCN}
    theme={{
      token: {
        colorPrimary: "#1677ff",
      },
    }}
  >
    <HashRouter>
      <Provider store={store}>
        <App />
      </Provider>
    </HashRouter>
  </ConfigProvider>
);
